Dynomotion

Group: DynoMotion Message: 6780 From: novelchip Date: 2/21/2013
Subject: smooth stopping of non-coordinated motion
dear Tom

I am using a stepping motor in step-dir mode as a spindle and
want to stop its spinning motion (A) smoothly not abruptly indipendently from the coordinated motion of X Y Z axes stepping motors.
I have set up on thread nr 1 channels 0,1,2 as step-dir motion controls of XYZ axes
and set it up as a coordinate system
EnableAxis(0);
EnableAxis(1);
EnableAxis(2);
DefineCoordSystem(0,1,2,-1);


then I set up channel 3 to control in step-dir mode
the spindle axis A ( as I said I want to use a stepping motor as spindle)
I do not include the A axis channel in any coordinate system but use it as an independent stepping-motor.
EnableAxis(3)

The problem is that, while I can start and stop the motions of XYZ and A indipendently by setting up and pressing suitable user buttons on the KMotionCNC panel, the stopping of A is abrupt.


I use
MoveRel(3,10000000000)
in thread 3 to start the spindle for an indefinite time

and I use

StopMotion(ch3);

in thread 2 to stop the spindle when a suitable user button is pressed.


How can I stop a non-coordinated motion with a smooth slowdown
if it is not part of a coordinate system ?

Thank you for your kind atttention
Group: DynoMotion Message: 6782 From: himykabibble Date: 2/21/2013
Subject: Re: smooth stopping of non-coordinated motion
Instead of using StopMotion, why not look at the current position, then do another MoveRel giving a position a few turns ahead of where it currently is?

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, "novelchip" <marco.natali@...> wrote:
>
> dear Tom
>
> I am using a stepping motor in step-dir mode as a spindle and
> want to stop its spinning motion (A) smoothly not abruptly indipendently from the coordinated motion of X Y Z axes stepping motors.
> I have set up on thread nr 1 channels 0,1,2 as step-dir motion controls of XYZ axes
> and set it up as a coordinate system
> EnableAxis(0);
> EnableAxis(1);
> EnableAxis(2);
> DefineCoordSystem(0,1,2,-1);
>
>
> then I set up channel 3 to control in step-dir mode
> the spindle axis A ( as I said I want to use a stepping motor as spindle)
> I do not include the A axis channel in any coordinate system but use it as an independent stepping-motor.
> EnableAxis(3)
>
> The problem is that, while I can start and stop the motions of XYZ and A indipendently by setting up and pressing suitable user buttons on the KMotionCNC panel, the stopping of A is abrupt.
>
>
> I use
> MoveRel(3,10000000000)
> in thread 3 to start the spindle for an indefinite time
>
> and I use
>
> StopMotion(ch3);
>
> in thread 2 to stop the spindle when a suitable user button is pressed.
>
>
> How can I stop a non-coordinated motion with a smooth slowdown
> if it is not part of a coordinate system ?
>
> Thank you for your kind atttention
>
Group: DynoMotion Message: 6783 From: Tom Kerekes Date: 2/21/2013
Subject: Re: smooth stopping of non-coordinated motion
You can do an immediate, blended, stop by commanding a Jog Speed of zero:

Jog(3,0.0);

To Start the spindle spinning for ever you can also use a Jog instead of the big move:

Jog(3,speed);

Regards
TK